﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ImageRecognition2.Forms
{
    /// <summary>
    /// Get Transform Formula...
    /// </summary>
    public partial class FormGeoTransformFormulaScript : Form
    {
        /// <summary>
        /// 
        /// </summary>
        public FormGeoTransformFormulaScript()
        {
            InitializeComponent();
            this.tbXTransform.TextChanged += new EventHandler(tbXTransform_TextChanged);
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void tbXTransform_TextChanged(object sender, EventArgs e)
        {
            if (chkbUseSameFormulas.Checked)
            {
                tbYTransform.Text = tbXTransform.Text;
            }
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void cbOK_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.OK;
            this.Close();
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void cbCancel_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.Cancel;
            this.Close();
        }
    }
}
